package LanQiaoCompetition.LanQiaoCompetition2;

import java.util.Scanner;

public class Basic_21 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        System.out.println(getSn(n,"",0));
    }

    public static String  getAn(int n,String an){
        if(n==0){
            return "sin(" + an +")";
        }
        if(an.equals("")){
            an = String.valueOf(n);
        }
        else if(n%2 == 0){
            an = n +"+sin(" + an + ")";
        }
        else if(n%2 == 1){
            an = n +"-sin(" + an + ")";
        }
        return getAn(n-1,an);
    }

    public static String getSn(int n,String sn,int i){
        if(n<=0 || i==n){
            return sn;
        }
        if(sn.equals("")){
            sn =  getAn(1,"") + "+" + n ;
        }
        else {
            sn = "(" + sn + ")" +getAn(i+1,"") + "+" + String.valueOf(n-i);
        }
        return getSn(n,sn,i+1);
    }
}
